package com.ux.iot.core.annotation;

import com.ux.iot.core.constant.IotTypeEnum;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * @author caixiaodao
 * @version 1.0
 * 功能描述
 * 消息监听
 * @date 2021/12/5 00:30
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface MessageListener {
    /**
     * topic 通道，
     * @return
     */
    String value() default "";

    /**
     * 物联网类型
     * @return
     */
    IotTypeEnum[] type() default {};
    /**
     * 消息通道
     * @return
     */
    @AliasFor("value")
    String topic() default "";
}
